package com.ocgs.dao;

import com.ocgs.base.core.exception.BaseDAOException;
import com.ocgs.model.Customer;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: bryant
 * Date: 10/21/12
 * Time: 10:48 PM
 * To change this template use File | Settings | File Templates.
 */
public interface CustomerDAO {

    public int deleteByPrimaryKey(Integer id) throws BaseDAOException;

    public int insert(Customer record) throws BaseDAOException;

    public int insertSelective(Customer record) throws BaseDAOException;

    public Customer selectByPrimaryKey(Integer id) throws BaseDAOException;

    public int updateByPrimaryKeySelective(Customer record) throws BaseDAOException;

    public int updateByPrimaryKey(Customer record) throws BaseDAOException;

    public List<Customer> findAllCustomer(Customer customer) throws BaseDAOException;

    public String retrieveCustomerAddress(Customer customer) throws BaseDAOException;
//
//    public List<customer> getAllCustomer() throws BaseDAOException;
//
//    public List<customer> searchStorage(customer customer) throws BaseDAOException;
}
